<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>${self.title()}</title>
    <link href="/static/dashboard/css/bootstrap.min.css" rel="stylesheet">
    <link href="/static/dashboard/css/base.css" rel="stylesheet">
    ${self.css()}
</head>
<body>
<%! from django.urls import reverse %>
<%include file="nav.html" />
<div id="base-area">
    <ul class="side-menu" style="background-color: aliceblue">
##         用户是否是超级用户，不是
        % if request.user.is_superuser:
            <li><a href="${reverse('admin_manager')}">所有用户</a></li>
            <li><a href="${reverse('add_movie')}">新增电影</a></li>
            <li><a href="${reverse('modify')}">修改电影信息</a></li>
        % endif

##         用户不是超级用户
        % if not request.user.is_superuser:
            <li><a href="${reverse('update_info')}">个人信息</a></li>
            <li><a href="${reverse('updatecollect')}">收藏列表</a></li>
            <li><a href="${reverse('showratedmovies')}">查看已评分电影</a></li>
            <li><a href="${reverse('client_video')}">返回</a></li>
        % endif
    </ul>

    <div class="base-content" style="background-color: aliceblue">
        ${self.content()}
    </div>
</div>
</body>
<script src="/static/dashboard/js/jquery-1.12.4.min.js"></script>
<script src="/static/dashboard/js/bootstrap.min.js"></script>
${self.js()}
</html>

<%def name="title()"></%def>
<%def name="js()"></%def>
<%def name="css()"></%def>
<%def name="content()"></%def>
